package utils

import "fmt"

type PriceInt int

func (p PriceInt) String() string {
	cent := p % 100
	if cent%10 == 0 {
		cent = cent / 10
	}
	if cent == 0 {
		return fmt.Sprintf("%d", p/100)
	}
	return fmt.Sprintf("%d.%d", p/100, cent)
}
